package com.ruoyi.customer.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 附件dto
 *
 * @Author:zzm
 * @Date: 2025/6/12 11:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AttachmentInfo {
    @NotBlank
    private String url;     // 文件访问URL

    private String name;    // 文件名

    private String date; //上传时间

    @Pattern(regexp = "image|pdf|excel|word|text|video|audio|other")
    private String type;    // 明确的文件类型分类
}
